<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>DouPHP 管理中心 - 修改文章 </title>
    <meta name="Copyright" content="Douco Design." />
    <link href="admin/css/public.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="admin/js/jquery.min.js"></script>
    <script type="text/javascript" src="admin/js/global.js"></script>
    <script type="text/javascript" src="admin/js/jquery.autotextarea.js"></script>
    <script type="text/javascript" charset="utf-8" src="admin/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="admin/ueditor/ueditor.all.js"></script>
    <link href="admin/ueditor/themes/default/css/ueditor.css" rel="stylesheet">
    <script type="text/javascript" charset="utf-8" src="admin/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<div id="dcWrap">
    <%@include file="head.jsp"%>
    <!-- dcHead 结束 -->
    <%@include file="left.jsp"%>
    <div id="dcMain">
        <!-- 当前位置 -->
        <div id="urHere">DouPHP 管理中心<b>></b><strong>修改文章</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">

        <form action="admin/EditArticleSubmitServlet" method="post">
            <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                <tr>
                    <td width="90" align="right">文章名称</td>
                    <td>
                        <input type="hidden" value="${article.id}" name="id">
                        <input type="text" name="title"  value="${article.title}" size="80" class="inpMain" />
                    </td>
                </tr>
                <tr>
                    <td align="right">文章分类</td>
                    <td>
                        <select name="itemid">
                            <c:forEach items="${listitems}" var="items">
                                <option value="${items.id}" <c:if test="${items.id==article.itemid}">selected</c:if>> ${items.itemname}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="top">文章描述</td>
                    <td>

                        <textarea id="editor" name="content" type="text/plain" style="width: 1000px ; height: 500px">
                            ${article.content}
                        </textarea>
                        <script type="text/javascript">
                            UE.getEditor('editor');
                        </script>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="top">添加日期</td>
                    <td>

                       <input type="date" name="tdate" value="${article.tdate}">
                    </td>
                </tr>

                <tr>
                    <td></td>
                    <td>

                        <input name="submit" class="btn" type="submit" value="提交" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
    </div>
    <div class="clear"></div>
    <%@include file="bottom.jsp"%><!-- dcFooter 结束 -->
    <div class="clear"></div> </div>

</body>
</html>